home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: mike_huwe@mindlink.bc.ca (Mike Huwe)
- Newsgroups: comp.lang.c
- Subject: *** NEED ADVICE : Shell out to DOS ***
- Date: 5 Mar 1996 09:38:08 GMT
- Organization: Your Organization
- Message-ID: <4hh220$bsv@fountain.mindlink.net>
- NNTP-Posting-Host: line090.nwm.mindlink.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- I'm taking an introductory course in C programming. I have a question
- that has given me problems and I hope someone might be able to help
- me out.
-
- I have a menu program. When the user selects option 1, the program should
- shell out to dos and display the current version and then return back to
- the menu.
-
- The code I used is: case '1':
- system("ver");
- break;
-
- This did not work. Is there more code that I must add or is it a different
- command entirely? Thanks in advance.
-
-
- Mike
-
-